<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Door_control_dll: Door_control_dll</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Door_control_dll
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li class="current"><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">Door_control_dll </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><dl class="user"><dt><b>Description:</b></dt><dd>dll to work with door controller<ul>
<li>controls actuator</li>
<li>controls relay to break modem power</li>
<li>reads state of reeds</li>
</ul>
</dd></dl>
<dl class="user"><dt><b>Here is example:</b></dt><dd><ul>
<li><a class="el" href="_door__control__dll_8h.html#a518a8d4c86b4ba2cfc9d37e9a8773eab" title="Initialization.">door_control_init()</a>;</li>
<li><a class="el" href="_door__control__dll_8h.html#a75444cf6384e550986a362f5fc33e18f" title="Set interface mode.">door_control_dev_if_mode(int mode)</a>; // int mode = 2</li>
<li><a class="el" href="_door__control__dll_8h.html#a9c4ffa4d06a7a396bf711fd497fd783c" title="Set serial port name.">door_control_ser_set_name(const char *ser_port_name)</a>; // char[] ser_port_name = "//./COM1"</li>
<li><a class="el" href="_door__control__dll_8h.html#ad779394bb01db061be3f30f8de27f669" title="Opens serial port or FTDI device and checks device type.">door_control_dev_open()</a>;</li>
<li><a class="el" href="_door__control__dll_8h.html#a664e43f29f02103b4f8afdcfcaa15bd9" title="Opens or closes the lock.">door_control_lock_set(int state)</a>;; // int state = 1 - lock open</li>
<li>cout &lt;&lt; "inputs : " &lt;&lt; hex &lt;&lt; <a class="el" href="_door__control__dll_8h.html#a11bc1420a48bdb3dd5e2c2287158060b" title="Get state of the inputs.">door_control_inps_get()</a> &lt;&lt; endl;</li>
<li><a class="el" href="_door__control__dll_8h.html#a664e43f29f02103b4f8afdcfcaa15bd9" title="Opens or closes the lock.">door_control_lock_set(int state)</a>;; // int state = 1 - lock close</li>
<li>cout &lt;&lt; "inputs : " &lt;&lt; hex &lt;&lt; <a class="el" href="_door__control__dll_8h.html#a11bc1420a48bdb3dd5e2c2287158060b" title="Get state of the inputs.">door_control_inps_get()</a> &lt;&lt; endl;</li>
<li><a class="el" href="_door__control__dll_8h.html#a69c549adcf652634a994e8cd669c4a00" title="Reset modem.">door_control_modem_reset()</a>;</li>
<li>cout &lt;&lt; "inputs : " &lt;&lt; <a class="el" href="_door__control__dll_8h.html#a11bc1420a48bdb3dd5e2c2287158060b" title="Get state of the inputs.">door_control_inps_get()</a> &lt;&lt; endl;</li>
<li><a class="el" href="_door__control__dll_8h.html#abaa08b23b8679de091443218b32683f7" title="Finalization.">door_control_finish()</a>;</li>
</ul>
</dd></dl>
<p>Created on: 04.07.2012 : aska </p>
</div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Feb 1 2013 14:57:24 for Door_control_dll by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
